﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcApplication1.Controllers
{
    /// <summary>
    /// Handler1 的摘要说明
    /// </summary>
    public class Handler2 : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string action = context.Request.Form["submit"];
            if (action == "保存")
            {
                // 保存的处理逻辑
                string name = context.Request.Form["CustomerName"];
                //context.Response.Write(name);
            }
            if (action == "查询")
            {
                // 查询的处理逻辑
            }

        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}